package learn_design_patterns.c1.ducks;

import learn_design_patterns.c1.Duck;
import learn_design_patterns.c1.behaviors.fly.FlyNoWay;
import learn_design_patterns.c1.behaviors.quack.Squeak;

/**
 * 橡皮鸭
 * 
 * @author zhangchen
 *
 */
public class RubberDuck extends Duck {

	public RubberDuck() {
		flyBehavior = new FlyNoWay();
		quackBehavior = new Squeak();
	}

	@Override
	public void display() {
		System.out.println("I'm a rubber duck");
	}

}
